#set($title = "智能会议预定系统-会议室状态") #includeFootable
<style type="text/css">
.unused {
	cursor: pointer;
}

.used {
	background: green;
}

.select {
	background: blue;
}
.TV{
}
.Lync{

}
.IT{

}
.Phone{

}
</style>
<table class="footable table " data-filter="#filter" data-page-size="10"
	data-page-previous-text="上一页" data-page-next-text="下一页"
	data-page-navigation=".pagination">
	<caption>
		<div class="input-append date" id="dpYears">
			<span class="add-on"><i
                class="icon-calendar"></i></span><input type="text" id="selectdate" readonly="readonly"
				value='$date.format("yyyy-MM-dd",$date)' /></div>
			
	</caption>
	<thead>
		<tr>
			<th>会议室名称</th>
			<th data-sort-ignore="true">8:00</th>
			<th data-sort-ignore="true">8:30</th>
			<th data-sort-ignore="true">9:00</th>
			<th data-sort-ignore="true">9:30</th>
			<th data-sort-ignore="true">10:00</th>
			<th data-sort-ignore="true">10:30</th>
			<th data-sort-ignore="true">11:00</th>
			<th data-sort-ignore="true">11:30</th>
			<th data-sort-ignore="true">12:00</th>
			<th data-sort-ignore="true">12:30</th>
			<th data-sort-ignore="true">13:00</th>
			<th data-sort-ignore="true">13:30</th>
			<th data-sort-ignore="true">14:00</th>
			<th data-sort-ignore="true">14:30</th>
			<th data-sort-ignore="true">15:00</th>
			<th data-sort-ignore="true">15:30</th>
			<th data-sort-ignore="true">16:00</th>
			<th data-sort-ignore="true">16:30</th>
			<th data-sort-ignore="true">17:00</th>
			<th data-sort-ignore="true">17:30</th>
		</tr>
	</thead>
	<tbody>
		#foreach($meeting in
		$meetingTool.getAllMeeting($session.getAttribute("user").getUserRight()))
		#set($today=$date.format('yyyy-MM-dd',$date))
		#set($meetingUse=$meetingUseTool.getMeetingUse($meeting.id,$today))
		<tr meetingId="$meeting.id">
			<td
				title="#if($meeting.hasTv==1)TV #end #if($meeting.hasLync==1)Lync #end #if($meeting.hasPhone==1)Phone #end #if($meeting.hasIt==1)IT #end"
				class="#if($meeting.hasTv==1)TV #end #if($meeting.hasLync==1)Lync #end #if($meeting.hasPhone==1)Phone #end #if($meeting.hasIt==1)IT #end">
				$meeting.meetingName</td>
			<td class='#isUsed($meetingUse.eight)' clock='8'></td>
			<td class='#isUsed($meetingUse.eightHalf)' clock='8.5'></td>
			<td class='#isUsed($meetingUse.nine)' clock='9'></td>
			<td class='#isUsed($meetingUse.nineHalf)' clock='9.5'></td>
			<td class='#isUsed($meetingUse.ten)' clock='10'></td>
			<td class='#isUsed($meetingUse.tenHalf)' clock='10.5'></td>
			<td class='#isUsed($meetingUse.eleven)' clock='11'></td>
			<td class=' #isUsed($meetingUse.elevenHalf)' clock='11.5'></td>
			<td class=' #isUsed($meetingUse.twelve)' clock='12'></td>
			<td class='#isUsed($meetingUse.twelveHalf)' clock='12.5'></td>
			<td class=' #isUsed($meetingUse.thirteen)' clock='13'></td>
			<td class='#isUsed($meetingUse.thirteenHalf)' clock='13.5'></td>
			<td class=' #isUsed($meetingUse.forteen)' clock='14'></td>
			<td class='#isUsed($meetingUse.forteenHalf)' clock='14.5'></td>
			<td class='#isUsed($meetingUse.fifteen)' clock='15'></td>
			<td class=' #isUsed($meetingUse.fifteenHalf)' clock='15.5'></td>
			<td class=' #isUsed($meetingUse.sixteen)' clock='16'></td>
			<td class='#isUsed($meetingUse.sixteenHalf)' clock='16.5'></td>
			<td class='#isUsed($meetingUse.seventeen)' clock='17'></td>
			<td class='#isUsed($meetingUse.seventeenHalf)' clock='17.5'></td>
		</tr>
		#end
	</tbody>
	<tfoot>
		<tr>
			<td colspan="21">
				<div class="pagination pagination-centered"></div>
			</td>
		</tr>
	</tfoot>
</table>
#includeJs(["room/room"])
<script type="text/javascript">
var meetings = new Array();
#foreach($meeting in $meetingTool.getAllMeeting($session.getAttribute("user").getUserRight()))
   meetings["$meeting.id"]={hasTv:$meeting.hasTv,hasIt:$meeting.hasIt,hasPhone:$meeting.hasPhone,hasLync:$meeting.hasLync};
#end
       

</script>
